<?php
class Tag extends MModel {
    static $table_name = 'ml_microblog_tags';
    static $has_many = array(
        array('ml_microblog_posts_tags', 'class_name'=>'PostTag'),
        array('ml_microblog_posts', 'through'=>'ml_microblog_posts_tags', 'source'=>'Post', 'order'=>'date DESC'),
    );
    static $alias_attribute = array(
        'posts'=>'ml_microblog_posts',
    );
}
?>
